//
//  HealthDetailsViewModel.m
//  safeLady
//
//  Created by Justsoso on 2017/7/14.
//  Copyright © 2017年 xmy. All rights reserved.
//

#import "HealthDetailsViewModel.h"

@implementation HealthDetailsViewModel

- (NSArray *)userLoveTimes {
    if (!_userLoveTimes) {
        _userLoveTimes = [NSArray array];
    }
    return _userLoveTimes;
}

- (void)initialize
{
    [super initialize];
    
    @weakify(self);
    [[self.httpService getHealthDetailsList:nil] subscribeNext:^(BaseModel *model) {
        @strongify(self);
        if (model.code == 200) {
            
            self.userLoveTimes = model.data;
        }else {
            
        }
        
    }];
    
}


@end
